<table class="table">
      <thead>
        <tr>
          <th>Customer</th>
          <th>Room</th>
          <th>Status</th>
          <th>Check in</th>
          <th>Time</th>
          <th>Check out</th>
          <th>Total price</th>
          <th colspan="3"></th>
        </tr>
      </thead>

      <tbody>
        <% @transactions.each do |transaction| %>
          <tr>
<<<<<<< .mine
            <td><%= transaction.customer.name %></td>
            <td><%= transaction.room.label unless transaction.room.nil? %></td>
            <td>
              <%= transaction.status_id %>
            </td>
=======
            <td><%= transaction.customer.name %></td>
            <td><%= transaction.room.label %></td>
            <td><%= transaction.status.label %></td>
>>>>>>> .r14
            <td><%= l(transaction.check_in.localtime, format: :long) unless transaction.check_in.nil? %></td>
            <td>
              <%= transaction.time %>
            </td>
            <td><%= l(transaction.check_out.localtime, format: :long) unless transaction.check_out.nil? %></td>
            <td><%= transaction.total_price %></td>
            <td><%= link_to 'Show', transaction %></td>
            <td><%= link_to 'Edit', edit_transaction_path(transaction) %></td>
            <td><%= link_to 'Destroy', transaction, method: :delete, data: { confirm: 'Are you sure?' } %></td>
          </tr>
        <% end %>
      </tbody>
    </table>